<template>
	<view class="b_width hui">
		<view class="form_box">

			<view class="xx_box">

				<view class="xx_title">身份信息</view>


				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">姓名</view>
					</view>
					<view class="i_right">{{form.name}}</view>
				</view>

				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">手机号</view>
					</view>
					
					<view class="i_right">{{form.mobile}}</view>
					
				</view>


				<view class="b_flex_c input_box" @click="groupShow=true">
					<view class="b_flex_c left">
						<view class="">工种类型</view>
					</view>
					<view class="i_right" v-if="form.groups">{{form.groups.name}}</view>
				</view>


				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">地址</view>
					</view>
					<view class="i_right">{{form.site}}</view>
				
				</view>

				<view class="input_box">
					<view class="bz_box b_flex_c">
						<view>身份证正反面</view>
					</view>
					<view class="upload_box">
					   <image @click="showImg(form.images,index)" class="u_img" :src="item" v-for="(item,index) in form.images" :key="index" ></image>
					</view>
				</view>

				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">户名</view>
					</view>
					<view class="i_right">{{form.hm}}</view>
				</view>

				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">银行卡号</view>
					</view>
					<view class="i_right">{{form.card}}</view>
				
				</view>

				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">开户行</view>
					</view>
					
					<view class="i_right">{{form.hu}}</view>
					
				</view>

				<view class="b_flex_c input_box">
					<view class="b_flex_c left">
						<view class="">账号</view>
					</view>
					
					<view class="i_right">{{form.account}}</view>
					
				</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import imgUpload from "@/components/imgUpload.vue";
	const app = getApp().globalData;
	const {
		imgRemote,
	} = app;
	export default {
		components: {
			imgUpload
		},
		data() {
			return {
				imgRemote: imgRemote,
				form: {
					name: '',
					mobile: '',
					groups_id: '',
					images: '',
					card: '',
					hm: '',
					site: '',
					hu: '',
					account: '',
					password: ''
				},
				info: {
					id: ''
				},
			
				user: {
					name: ''
				},
			
			}
		},
		onLoad(data) {
		
			this.getInfo();
		},
		onShow() {

		},
		methods: {
			showImg(e,index){
			   uni.previewImage({
			   	urls:e,
				current:index
			   })
			},
			getInfo() {
				this.$get(this.$api.teamInfo, {
					token: uni.getStorageInfoSync('userToken'),
					type:2
				}, res => {
					this.form= res.data.data;
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	::v-deep {
		.u-radio__label {
			margin-right: 0 !important;
		}

		.u-radio__icon-wrap {
			margin-left: 20rpx;
		}
	}

	.b_width {
		width: 100%;
	}

	.hui {
		background: #F4F4F4;
		min-height: 100vh;
	}

	.form_box {
		box-sizing: border-box;
		padding: 30rpx 20rpx;
		font-size: 28rpx;
	}

	.xx_box {
		box-sizing: border-box;
		padding: 30rpx 30rpx;
		background-color: #fff;
		border-radius: 15rpx;
		margin-bottom: 30rpx;
	}

	.radio {
		display: inline-block;
	}

	.sex_box {
		margin-left: auto;
		display: flex;
		align-items: center;
	}

	.xx_title {
		font-size: 32rpx;
		margin-bottom: 20rpx;
	}

	.i_right {
		text-align: right;
		margin-left: auto;
	}

	.l_icon {
		margin-left: 10rpx;
		width: 28rpx;
		height: 28rpx;
	}

	.bz_box {

		box-sizing: border-box;
		padding: 0 0 25rpx 0;
		border-bottom: 1rpx solid #EFEFEF;
	}

	.input_box {
		box-sizing: border-box;
		padding: 30rpx 0;

	}

	.i_b_b {
		border-bottom: 1rpx solid #EFEFEF;
	}


	.upload_box {
		box-sizing: border-box;
		padding: 30rpx 0 0 0;
	}

	.b_flex_c {
		display: flex;
		align-items: center;
	}

	.b_red {
		color: red;
	}

	.b_f_w {
		font-weight: bold;
	}

	.xing {
		width: 18rpx;
		box-sizing: border-box;
		padding: 10rpx 0 0 0;
	}

	.left {
		width: 26%;
	}

	.tc_box {
		width: 50%;
		text-align: center;
	}

	.sumbit {
		//margin-top: 60rpx;
		width: 80%;
		height: 80rpx;
		line-height: 80rpx;
		text-align: center;
		background-color: #e34b0f;
		color: #fff;
		border-radius: 45rpx;
		margin: 0 auto 0 auto;
	}

	.map_box {
		font-size: 30rpx;
	}

	.shen_box {
		display: flex;
		justify-content: center;
		flex-direction: column;
		align-items: center;
		height: 80vh;
	}

	.right_icon {
		margin-left: auto;
	}

	.msg {
		font-size: 24rpx;
	}

	.s_box {
		text-align: center;
	}

	.s_msg {
		color: #555555;
		margin-top: 80rpx;
	}

	.s_look {
		color: #0F85E0;
		text-decoration: underline;
		margin-top: 40rpx;
		margin-bottom: 40rpx;
	}

	.dj_box {
		box-sizing: border-box;
		padding: 50rpx 20rpx 20rpx 20rpx;
		background-color: white;
		text-align: center;
		width: 500rpx;
	}

	.dj_btn {
		box-sizing: border-box;
		padding: 15rpx 0;
		border-radius: 25rpx;
		background-color: #E34305;
		color: white;
		font-size: 24rpx;
		margin-top: 30rpx
	}
	.u_img{
		width: 140rpx;
		height:140rpx;
	}
</style>